12 Jun 2025
I owe a debt of gratitude to many people as the thoughts and code in these slides are the process of years-long development cycles and discussions with my team, friends, colleagues and peers. When someone has contributed to the content of the slides, I have credited their authorship.
Images are either directly linked, or generated with StableDiffusion or DALL-E. That said, there is no information in this presentation that exceeds legal use of copyright materials in academic settings, or that should not be part of the public domain.
Warning
You may use any and all content in this presentation - including my name - and submit it as input to generative AI tools, with the following exception:
Materials
Gisteren hebben we deze onderwerpen behandeld:
Vandaag behandelen we de volgende onderwerpen:
Source: Anscombe, F. J. (1973). “Graphs in Statistical Analysis”. American Statistician. 27 (1): 17–21.
Source: https://www.autodeskresearch.com/publications/samestats
R PlotsR objects also have a plot() methodggplot2?Layered plotting based on the book The Grammer of Graphics by Leland Wilkinsons.
With ggplot2 you
ggplot2 then takes care of the details
1: Provide the data
2: map variable to aesthetics
3: state which geometric object to display
Create the plot
Add another layer (smooth fit line)
Give it some labels and a nice look
geom_point
geom_bar
geom_line
geom_smooth
geom_histogram
geom_boxplot
geom_density
theme_minimal(), theme_classic(), theme_bw(), …ggthemestheme()Use plotly::ggplotly() to make any ggplot interactive
Use plotly::ggplotly() to make any ggplot interactive
Gerko Vink @ Anton de Kom Universiteit, Paramaribo